package com.example.demo.struct.decorator;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
public class DecoratorTest {
    public static void main(String[] args) {
        Hamburger hamburger = new Hamburger();
        hamburger.info();
        System.out.println("---------------------");
        Hamburger sugarHamburger = new SugarHamburger();
        sugarHamburger.info();
        System.out.println("---------------------");
        Hamburger eggHamburger = new EggSugarHamburger();
        eggHamburger.info();
    }
}
